From 32553461c76a016aea6435a86a1d60152be995fa Mon Sep 17 00:00:00 2001 From: "stekloff@elm3b216.beaverton.ibm.com" Date: Tue, 24 Jan 2006 17:59:33 +0100 Subject: [PATCH] Added dependency check for lilo in configure.ac for vmx enabled builds. Must have lilo version 22.7 or greater. Signed-off-by: Daniel Stekloff --- tools/xm-test/configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/xm-test/configure.ac b/tools/xm-test/configure.ac index 4a606e611c..f61e6284cb 100644 --- a/tools/xm-test/configure.ac +++ b/tools/xm-test/configure.ac @@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([1.7 foreign]) # Check for dependencies AC_PROG_CC #AC_PROG_INSTALL +AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH]) # Right now, we can assume that the lib/ and ramdisk/ directories # are two levels above the tests @@ -22,6 +23,18 @@ AC_ARG_ENABLE(vmx-support, ENABLE_VMX=False ]) +if test "x$ENABLE_VMX" = "xTrue"; then + if test "$LILO" = "no"; then + AC_MSG_ERROR([lilo not found +lilo version 22.7 or greater must be installed for testing with vmx enabled.]) + else + pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'` + if test "$pass" != "true"; then + AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.) + fi + fi +fi + AM_CONDITIONAL(VMX, test x$ENABLE_VMX = xTrue) AC_SUBST(ENABLE_VMX) -- 2.30.2